package xps.and.uudaijia.userclient.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import butterknife.ButterKnife;
import xps.and.uudaijia.userclient.R;
import xps.and.uudaijia.userclient.data.entity.FakeEntity;

public class CuponAdapter extends AbstractRecyclerAdapter<FakeEntity> {
    public CuponAdapter(Context context, RecyclerView recyclerView) {
        super(context, recyclerView);
    }

    @Override
    protected RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType, boolean isItem) {
        View v = LayoutInflater.from(parent.getContext()).inflate(
                R.layout.item_cupon, parent, false);
        return new ViewHolder(v);
    }

    @Override
    protected void onBindViewHolder(RecyclerView.ViewHolder holder, int position, boolean isItem) {
        ViewHolder myViewHolder = (ViewHolder) holder;
    }

    static class ViewHolder  extends RecyclerView.ViewHolder{
        ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
